package com.aaa.service.impl;

import com.aaa.entity.Login_log;
import com.aaa.mapper.LogMapper;
import com.aaa.result.Result;
import com.aaa.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LogServiceImpl implements LogService {
    @Autowired
    private LogMapper mapper;

    @Override
    public Result InsertLog(Login_log log) {
        int insert = mapper.insert(log);
        if (insert>0){
            return Result.success("添加日志成功！");
        }
        return Result.error("添加日志失败！！！！！！！！！");
    }
}
